import Vue from 'vue'
import App from './App.vue'



//导入element-ui
import ElementUi from 'element-ui'
//导入element-ui样式
import 'element-ui/lib/theme-chalk/index.css';
//使用element-ui
Vue.use(ElementUi)
Vue.config.productionTip = false
//导入路由 
import VueRouter from 'vue-router'
//使用路由
Vue.use(VueRouter)
//导入 路由管理组件
import discover from './components/views/01.discover.vue'
import recommended from './components/views/02.recommended.vue'
 import newMusic from './components/views/03.newMusic.vue'
import newMv from './components/views/04.newMv.vue'

//创建路由
let router=new VueRouter({
  routes:[
    {
      path:'/',
      redirect:'/discover',
    },
    {
      path:'/discover',
      component:discover
    },
    {
      path:'/recommended',
      component:recommended
    },
    {
      path:'/newMusic',
      component:newMusic
    },
    {
      path:'/newMv',
      component:newMv
    },
  ]
})
new Vue({
  render: h => h(App),
  //路由挂载
  router
}).$mount('#app')
